﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Desktop.views.cruds.crudsEquipamento.crudArma;
using Desktop.views.cruds.crudsEquipamento.crudCapacete;
using Desktop.views.cruds.crudsEquipamento.crudCilindrio;
using Desktop.views.cruds.crudsEquipamento.crudColete;
using Desktop.views.cruds.crudsEquipamento.crudCilindro;

namespace Desktop.views.cruds.crudsEquipamento
{
    public partial class MenuEquipamento : Form
    {
        private TelaInicial telaInicial;


        public MenuEquipamento(TelaInicial telaInicial)
        {
            this.telaInicial = telaInicial;
            telaInicial.Hide();

            InitializeComponent();
        }

        private void buttonArma_Click(object sender, EventArgs e)
        {
            MenuArma menuArma = new MenuArma(this);
            menuArma.ShowDialog();
        }

        private void buttonCapacete_Click(object sender, EventArgs e)
        {
            MenuCapacete menuCapacete = new MenuCapacete(this);
            menuCapacete.ShowDialog();
        }

        private void buttonCilindro_Click(object sender, EventArgs e)
        {
            MenuCilindro menuCilindro = new MenuCilindro(this);
            menuCilindro.ShowDialog();
        }

        private void buttonColete_Click(object sender, EventArgs e)
        {
            MenuColete menuColete = new MenuColete(this);
            menuColete.ShowDialog();
        }

        private void buttonSair_Click(object sender, EventArgs e)
        {
            telaInicial.Show();
            this.Dispose();
        }

        private void MenuEquipamento_FormClosed(object sender, FormClosedEventArgs e)
        {
            telaInicial.Show();
            this.Dispose();
        }

     

    }
}
